/**
 * 
 */
package de.mbenning.fsim.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Martin.Benning
 */
@Entity
@Table (name="KONTINENT", schema="public")
public class Kontinent implements Serializable {

	private static final long serialVersionUID = -4443294458244018584L;
	
	@Id
	@GeneratedValue (strategy = GenerationType.TABLE)
	@Column (name = "ID", updatable = false, nullable = false)
	private Integer id;

	@Column (name = "NAME", length = 20, unique = true)
	private String name;
	
	public Kontinent() {
	}
	
	public Kontinent(String name) {
		this.name = name;
	}
	
	public Kontinent(Integer id, String name) {
		this.id = id;
		this.name = name;
	}
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

}
